<template>
  <el-descriptions
    :title="t('ustcstudent.view.tab.admission')"
    :column="3"
    border
    label-width="150"
  >
    <!--    <el-descriptions-item :label="t('ustcStudentInfoAdmission.fields.admissionsYear')" width="280">-->
    <!--      <EditInput-->
    <!--        :dict-type="DICT_TYPE.USTC_INFO_ADMISSIONS_YEAR"-->
    <!--        v-model="model.admissionsYear"-->
    <!--        :placeholder="-->
    <!--          t('common.selectTextPlaceholder') + t('ustcStudentInfoAdmission.fields.admissionsYear')-->
    <!--        "-->
    <!--        disabled-->
    <!--      />-->
    <!--    </el-descriptions-item>-->
    <el-descriptions-item :label="t('ustcStudentInfoAdmission.fields.candidateNumber')" width="280">
      <EditInput
        v-model="model.candidateNumber"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoAdmission.fields.candidateNumber')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoAdmission.fields.admissionCategory')"
      width="280"
    >
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_ADMISSION_CATEGORY"
        v-model="model.admissionCategory"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoAdmission.fields.admissionCategory')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoAdmission.fields.examMethod')" width="280">
      <EditInput
        :dict-type="DICT_TYPE.USTC_INFO_EXAM_METHOD"
        v-model="model.examMethod"
        :placeholder="
          t('common.selectTextPlaceholder') + t('ustcStudentInfoAdmission.fields.examMethod')
        "
        disabled
      />
    </el-descriptions-item>
    <!--    <el-descriptions-item :label="t('ustcStudentInfoAdmission.fields.retentionPeriod')" width="280">-->
    <!--      <EditInput-->
    <!--        v-model="model.retentionPeriod"-->
    <!--        :placeholder="-->
    <!--          t('common.inputTextPlaceholder') + t('ustcStudentInfoAdmission.fields.retentionPeriod')-->
    <!--        "-->
    <!--        disabled-->
    <!--      />-->
    <!--    </el-descriptions-item>-->
    <el-descriptions-item
      :label="t('ustcStudentInfoAdmission.fields.trainingUnitLocation')"
      width="280"
    >
      <EditInput
        v-model="model.trainingUnitLocation"
        :placeholder="
          t('common.inputTextPlaceholder') +
          t('ustcStudentInfoAdmission.fields.trainingUnitLocation')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoAdmission.fields.trainingUnit')" width="280">
      <EditInput
        v-model="model.trainingUnit"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoAdmission.fields.trainingUnit')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoAdmission.fields.rewardsSanctions')"
      width="280"
    >
      <EditInput
        v-model="model.rewardsSanctions"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoAdmission.fields.rewardsSanctions')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item
      :label="t('ustcStudentInfoAdmission.fields.personalExperience')"
      width="280"
    >
      <EditInput
        v-model="model.personalExperience"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoAdmission.fields.personalExperience')
        "
        disabled
      />
    </el-descriptions-item>
    <el-descriptions-item :label="t('ustcStudentInfoAdmission.fields.familyInfo')" width="280">
      <EditInput
        v-model="model.familyInfo"
        :placeholder="
          t('common.inputTextPlaceholder') + t('ustcStudentInfoAdmission.fields.familyInfo')
        "
        disabled
      />
    </el-descriptions-item>
  </el-descriptions>
</template>

<script setup lang="ts">
import EditInput from './input/EditInput.vue'
import EditDict from './input/EditDict.vue'
import { UstcStudentInfoAdmissionVO } from '@/api/core/ustcstudentinfoadmission'
import { DICT_TYPE } from '@/utils/dict'

const { t } = useI18n()

const model = defineModel<UstcStudentInfoAdmissionVO>({ required: true })
</script>

<style scoped lang="scss"></style>
